package com.hmall.common.feign.address;

import com.hmall.common.intercpptr.MyFeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @param
 * @return
 */
@FeignClient(name = "userservice",configuration = MyFeignInterceptor.class)
public interface AddressFeignClient {
    @GetMapping("/address/{id}")
     Address findAddressById(@PathVariable("id") Long id);
}
